package com.mti.epivisitemobile.controller
{
	import com.mti.epivisite.common.event.EpivisiteEvent;
	import com.mti.epivisite.common.event.EventProxy;
	import com.mti.epivisite.common.event.EventProxyBase;
	import com.mti.epivisitemobile.Constants;
	
	import org.puremvc.as3.interfaces.INotification;
	import org.puremvc.as3.patterns.command.SimpleCommand;
	
	public class LoadEventCommand extends SimpleCommand
	{
		public function LoadEventCommand()
		{
			super();
		}
		
		override public function execute(note:INotification):void
		{
			var proxy:EventProxyBase = EventProxyBase(facade.retrieveProxy(EventProxyBase.NAME));
			proxy.load(String(note.getBody()));
			sendNotification(Constants.SHOW_EVENT);
		}
	}
}